<template>
	<div>
		<el-menu router :default-active="$route.path" active-text-color="red">
			<el-menu-item index="/">
				<span slot="title">首页</span>
			</el-menu-item>
			<el-menu-item index="/list">
				<span slot="title">列表</span>
			</el-menu-item>
			<el-menu-item index="/list/add">
				<span slot="title">列表添加</span>
			</el-menu-item>
			<el-menu-item index="/set">
				<span slot="title">设置</span>
			</el-menu-item>
		</el-menu>
	</div>
</template>

<script>
export default {
	created() {
		console.log(this.$route)
	}
}
</script>

<style>

</style>